var app = require('express')()
var http = require('http')
var server = http.createServer()
var io = require('socket.io')(server)

io.on('connection', function (client) {
    client.emit('data', 'Hello WebSocket from 3001.')
})

server.listen(3001, function () {
    console.log('Responser is listening on port 3001');
})